/**
 * Copyright 2020 OPSLI 快速开发平台 https://www.opsli.com
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.opsli.modulars.customer.customerrelation.service;

import org.opsli.api.wrapper.customer.customerrelation.CustomerStudentRelationModel;
import org.opsli.api.wrapper.customer.customerrelation.CustomerStudentRelationQueryModel;
import org.opsli.core.base.service.interfaces.CrudServiceInterface;
import org.opsli.core.persistence.Page;
import org.opsli.modulars.customer.customerrelation.entity.CustomerStudentRelation;

import javax.servlet.http.HttpServletRequest;

/**
 * 客户关系 Service
 *
 * @author guagua
 * @date 2025-06-29 00:14:23
 */
public interface ICustomerStudentRelationService extends CrudServiceInterface<CustomerStudentRelation, CustomerStudentRelationModel> {

    /**
     * 查询客户学生关系详细信息分页数据（支持嵌套查询参数）
     *
     * @param queryModel 查询条件模型
     * @param pageNo     当前页
     * @param pageSize   每页条数
     * @return 分页数据
     */
    Page<CustomerStudentRelation, CustomerStudentRelationModel> findPageWithDetails(
            CustomerStudentRelationQueryModel queryModel, Integer pageNo, Integer pageSize, HttpServletRequest request);

    /**
     * 根据ID获取客户学生关系详细信息
     *
     * @param id 主键ID
     * @return 详细信息
     */
    CustomerStudentRelationModel getWithDetails(String id);


}